<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 开机/社区Banner/首页Banner/每日一语更新</li>
        </ul>
    </div>
    <div id="rightside" class="user_info activity_list">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h3>开机/社区Banner/首页Banner/每日一语更新</h3>
            </div>
            <div class="contentbox">
                <div class="extrabottom" style="height:auto;">
                	<div class="alert alert-info">
		              	<!--{if $show == 1}-->
		              		<a href="admin.php?ac=activity&show=1" class="btn btn-small">显示全部活动</a>
		              	<!--{else}-->
		              		<a href="admin.php?ac=activity" class="btn btn-small">隐藏过期活动</a>
		              	<!--{/if}-->
		            </div>
					<div class="alert alert-info">
		              	<strong>开机页面</strong>
		              	<button href="#addLaunchActivity" role="button" class="btn btn-primary btn-small" data-toggle="modal">添加</button>
						<div id="addLaunchActivity" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_launch" aria-hidden="true">
						  <form action="admin.php?ac=activity&op=addLaunchActivity" method="post">
							  <div class="modal-header">
								    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								    <h3 id="myModalLabel_launch">添加开机页面</h3>
							  </div>
							  <div class="modal-body nav-category">
									<div class="control-group">
										<label class="control-label" for="image_url">图片链接</label>
										<div class="controls">
											<textarea  style="width: 366px; height: 40px;" name="image_url" placeholder="图片链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="link_url">网页链接</label>
										<div class="controls url_textarea">
											<textarea  name="link_url" placeholder="网页链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="action_url">Action链接</label>
										<div class="controls url_textarea">
											<textarea name="action_url" placeholder="Action链接" >pinksns://group/topic?tid=204575&uid=5016188&gid=4</textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="start">上线时间(选择日期的凌晨)</label>
					                	<input id="start1" name="start" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="end">下线时间(选择日期的凌晨)</label>
									  	<input id="end1" name="end" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="sort">排序</label>
										<div class="controls">
											<input type="text" name="sort" class="input-large" placeholder="0" value="">
										</div>
									</div>
						  	    </div>
							    <div class="modal-footer">
								    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
								    <button type="submit" class="btn btn-primary">提交</button>
							    </div>
						  </form>
						</div>
		            </div>
	      			<table class="table table-bordered table-striped">
					    <colgroup>
					    	<col class="span1">
					    	<col class="span5">
					    </colgroup>
					    <thead>
					    	<tr>
								<th>类型</th>
								<th>图片链接</th>
								<th>网页链接</th>
								<th>Action链接</th>
								<th>上线时间</th>
								<th>下线时间</th>
								<th>有效期</th>
								<th>编辑</th>
								<th>删除</th>
					      	</tr>
					    </thead>
					    <tbody>
					    	<!--{loop $launchList $value}-->
					    	<tr>
								<td><code>launch</code></td>
								<td><img src="{$value[image_url]}" style="width:48px;height:60px;"/></td>
								<td>
									<!--{if !empty($value[link_url])}-->
										{$value[link_url]}
									<!--{else}-->
										无网页链接
									<!--{/if}-->
								</td>
								<td>
									<!--{if !empty($value[action_url])}-->
										{$value[action_url]}
									<!--{else}-->
										无话题链接
									<!--{/if}-->
								</td>
								<td><!--{date('Y-m-d H:i:s', $value[start])}--></td>
								<td><!--{date('Y-m-d H:i:s', $value[end])}--></td>
								<td>
									<!--{if $value[end] < $nowTimeStamp}-->
										<span class="label label-warning">过期</span>
									<!--{else}-->
										<span class="label label-success">有效</span>
									<!--{/if}-->
								</td>
								<td>
									<button href="#setLaunchActivity_{$value[id]}" role="button" class="btn btn-primary btn-small" data-toggle="modal">编辑</button>
									<div id="setLaunchActivity_{$value[id]}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_launch_set_{$value[id]}" aria-hidden="true">
									  <form action="admin.php?ac=activity&op=setLaunchActivity" method="post">
										  <div class="modal-header">
											    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											    <h3 id="myModalLabel_launch_set_{$value[id]}">修改banner</h3>
										  </div>
										  <div class="modal-body nav-category">
										  		<input type="hidden" name="id" value="{$value[id]}" >
												<div class="control-group">
													<label class="control-label" for="image_url">图片链接</label>
													<div class="controls url_textarea">
														<textarea name="image_url" placeholder="图片链接" >{$value[image_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="link_url">网页链接</label>
													<div class="controls url_textarea">
														<textarea name="link_url" placeholder="网页链接" >{$value[link_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="action_url">Action链接</label>
													<div class="controls url_textarea">
														<textarea name="action_url" placeholder="Action链接" >{$value[action_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="start">上线时间</label>
													<div class="controls">
														<input type="text" name="start" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[start])}-->">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="end">下线时间</label>
													<div class="controls">
														<input type="text" name="end" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[end])}-->">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="sort">排序</label>
													<div class="controls">
														<input type="text" name="sort" class="input-large" value="{$value[sort]}">
													</div>
												</div>
									  	    </div>
										    <div class="modal-footer">
											    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
											    <button type="submit" class="btn btn-primary">提交</button>
										    </div>
									  </form>
									</div>
								</td>
								<td>
									<a href="admin.php?ac=activity&op=delActivity&id={$value[id]}" data-id="{$value[id]}" onclick="javascript:return activity_del()" class="btn">删除</a>
								</td>
						    </tr>
						    <!--{/loop}-->
					    </tbody>
					</table>
					
					<div class="alert alert-info">
		              	<strong>社区Banner更新</strong>
						<button href="#addBannerActivity" role="button" class="btn btn-primary btn-small" data-toggle="modal">添加</button>
						<div id="addBannerActivity" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_banner" aria-hidden="true">
						  <form action="admin.php?ac=activity&op=addBannerActivity" method="post">
							  <div class="modal-header">
								    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								    <h3 id="myModalLabel_banner">添加banner</h3>
							  </div>
							  <div class="modal-body nav-category">
									<div class="control-group">
										<label class="control-label" for="image_url">图片链接(图片大小640*280)</label>
										<div class="controls url_textarea">
											<textarea name="image_url" placeholder="图片链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="link_url">网页链接</label>
										<div class="controls url_textarea">
											<textarea name="link_url" placeholder="网页链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="action_url">Action链接</label>
										<div class="controls url_textarea">
											<textarea name="action_url" >pinksns://group/topic?tid=204575&uid=5016188&gid=4</textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="start">上线时间(选择日期的凌晨)</label>
					                	<input id="start2" name="start" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="end">下线时间(选择日期的凌晨)</label>
									  	<input id="end2" name="end" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="sort">排序</label>
										<div class="controls">
											<input type="text" name="sort" class="input-large" value="0">
										</div>
									</div>
						  	    </div>
							    <div class="modal-footer">
								    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
								    <button type="submit" class="btn btn-primary">提交</button>
							    </div>
						  </form>
						</div>
		            </div>
		      			<table class="table table-bordered table-striped" id="banner_table">
						    <colgroup>
						    	<col class="span1">
						    	<col class="span6">
						    </colgroup>
						    <thead>
						    	<tr>
									<th>类型</th>
									<th>图片链接(图片大小640*280)</th>
									<th>网页链接</th>
									<th>Action链接</th>
									<th>上线时间</th>
									<th>下线时间</th>
									<th>有效期</th>
									<th>排序</th>
									<th>编辑</th>
									<th>删除</th>
						      	</tr>
						    </thead>
						    	<!--{loop $bannerList $value}-->
						    <tbody data-id="{$value[id]}">
						    	<tr>
									<td><code>Banner</code></td>
									<td>
										<img src="{$value[image_url]}"/>
									</td>
									<td>
										<!--{if !empty($value[link_url])}-->
											{$value[link_url]}
										<!--{else}-->
											无网页链接
										<!--{/if}-->
									</td>
									<td>
										<!--{if !empty($value[action_url])}-->
											{$value[action_url]}
										<!--{else}-->
											无话题链接
										<!--{/if}-->
									</td>
									<td><!--{date('Y-m-d H:i:s', $value[start])}--></td>
									<td><!--{date('Y-m-d H:i:s', $value[end])}--></td>
									<td>
										<!--{if $value[end] < $nowTimeStamp}-->
											<span class="label label-warning">过期</span>
										<!--{else}-->
											<span class="label label-success">有效</span>
										<!--{/if}-->
									</td>
									<td><span class="badge badge-info">{$value[sort]}</span></td>
									<td>
										<button href="#setBannerActivity_{$value[id]}" role="button" class="btn btn-primary btn-small" data-toggle="modal">编辑</button>
										<div id="setBannerActivity_{$value[id]}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_banner_set_{$value[id]}" aria-hidden="true">
										  <form action="admin.php?ac=activity&op=setBannerActivity" method="post">
											  <div class="modal-header">
												    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
												    <h3 id="myModalLabel_banner_set_{$value[id]}">修改banner</h3>
											  </div>
											  <div class="modal-body nav-category">
											  		<input type="hidden" name="id" value="{$value[id]}" >
													<div class="control-group">
														<label class="control-label" for="image_url">图片链接(图片大小640*280)</label>
														<div class="controls url_textarea">
															<textarea name="image_url" placeholder="图片链接" >{$value[image_url]}</textarea>
														</div>
													</div>
													<div class="control-group">
														<label class="control-label" for="link_url">网页链接</label>
														<div class="controls url_textarea">
															<textarea name="link_url" placeholder="网页链接" >{$value[link_url]}</textarea>
														</div>
													</div>
													<div class="control-group">
														<label class="control-label" for="action_url">Action链接</label>
														<div class="controls url_textarea">
															<textarea name="action_url" >{$value[action_url]}</textarea>
														</div>
													</div>
													<div class="control-group">
														<label class="control-label" for="start">上线时间</label>
														<div class="controls">
															<input type="text" name="start" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[start])}-->">
														</div>
													</div>
													<div class="control-group">
														<label class="control-label" for="end">下线时间</label>
														<div class="controls">
															<input type="text" name="end" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[end])}-->">
														</div>
													</div>
													<div class="control-group">
														<label class="control-label" for="sort">排序</label>
														<div class="controls">
															<input type="text" name="sort" class="input-large" value="{$value[sort]}">
														</div>
													</div>
										  	    </div>
											    <div class="modal-footer">
												    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
												    <button type="submit" class="btn btn-primary">提交</button>
											    </div>
										  </form>
										</div>
									</td>
									<td>
										<a href="admin.php?ac=activity&op=delActivity&id={$value[id]}" data-id="{$value[id]}" onclick="javascript:return activity_del()" class="btn">删除</a>
									</td>
							    </tr>
						    </tbody>
						    	<!--{eval $i++}-->
							    <!--{/loop}-->
						</table>
						
					<div class="alert alert-info">
		              	<strong>首页Banner更新</strong>
						<button href="#addHomeBannerActivity" role="button" class="btn btn-primary btn-small" data-toggle="modal">添加</button>
						<div id="addHomeBannerActivity" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_HomeBanner" aria-hidden="true">
						  <form action="admin.php?ac=activity&op=addHomeBannerActivity" method="post">
							  <div class="modal-header">
								    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								    <h3 id="myModalLabel_HomeBanner">添加首页banner</h3>
							  </div>
							  <div class="modal-body nav-category">
									<div class="control-group">
										<label class="control-label" for="image_url">图片链接(图片大小690*122)</label>
										<div class="controls url_textarea">
											<textarea name="image_url" placeholder="图片链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="action_url">Action链接</label>
										<div class="controls url_textarea">
											<textarea name="action_url" placeholder="活动网页链接" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="start">上线时间(选择日期的凌晨)</label>
					                	<input id="start3" name="start" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="end">下线时间(选择日期的凌晨)</label>
									  	<input id="end3" name="end" class="span3 laydate-icon" type="text">
									</div>
									<div class="control-group">
										<label class="control-label" for="sort">排序</label>
										<div class="controls">
											<input type="text" name="sort" class="input-large" value="0">
										</div>
									</div>
						  	    </div>
							    <div class="modal-footer">
								    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
								    <button type="submit" class="btn btn-primary">提交</button>
							    </div>
						  </form>
						</div>
		            </div>
	      			<table class="table table-bordered table-striped" id="HomeBanner_table">
					    <colgroup>
					    	<col class="span1">
					    	<col class="span6">
					    </colgroup>
					    <thead>
					    	<tr>
								<th>类型</th>
								<th>图片链接(图片大小690*122)</th>
								<th>Action链接</th>
								<th>上线时间</th>
								<th>下线时间</th>
								<th>有效期</th>
								<th>排序</th>
								<th>编辑</th>
								<th>删除</th>
					      	</tr>
					    </thead>
					    	<!--{loop $homeBannerList $value}-->
					    <tbody data-id="{$value[id]}">
					    	<tr>
								<td><code>HomeBanner</code></td>
								<td>
									<img src="{$value[image_url]}"/>
								</td>
								<td>
									<!--{if !empty($value[action_url])}-->
										{$value[action_url]}
									<!--{else}-->
										无话题链接
									<!--{/if}-->
								</td>
								<td><!--{date('Y-m-d H:i:s', $value[start])}--></td>
								<td><!--{date('Y-m-d H:i:s', $value[end])}--></td>
								<td>
									<!--{if $value[end] < $nowTimeStamp}-->
										<span class="label label-warning">过期</span>
									<!--{else}-->
										<span class="label label-success">有效</span>
									<!--{/if}-->
								</td>
								<td><span class="badge badge-info">{$value[sort]}</span></td>
								<td>
									<button href="#setHomeBannerActivity_{$value[id]}" role="button" class="btn btn-primary btn-small" data-toggle="modal">编辑</button>
									<div id="setHomeBannerActivity_{$value[id]}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_HomeBanner_set_{$value[id]}" aria-hidden="true">
									  <form action="admin.php?ac=activity&op=setHomeBannerActivity" method="post">
										  <div class="modal-header">
											    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											    <h3 id="myModalLabel_HomeBanner_set_{$value[id]}">修改首页banner</h3>
										  </div>
										  <div class="modal-body nav-category">
										  		<input type="hidden" name="id" value="{$value[id]}" >
												<div class="control-group">
													<label class="control-label" for="image_url">图片链接(图片大小690*122)</label>
													<div class="controls url_textarea">
														<textarea name="image_url" placeholder="图片链接" >{$value[image_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="link_url">网页链接</label>
													<div class="controls url_textarea">
														<textarea name="link_url" placeholder="网页链接" >{$value[link_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="action_url">Action链接</label>
													<div class="controls url_textarea">
														<textarea name="action_url" >{$value[action_url]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="start">上线时间</label>
													<div class="controls">
														<input type="text" name="start" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[start])}-->">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="end">下线时间</label>
													<div class="controls">
														<input type="text" name="end" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[end])}-->">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="sort">排序</label>
													<div class="controls">
														<input type="text" name="sort" class="input-large" value="{$value[sort]}">
													</div>
												</div>
									  	    </div>
										    <div class="modal-footer">
											    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
											    <button type="submit" class="btn btn-primary">提交</button>
										    </div>
									  </form>
									</div>
								</td>
								<td>
									<a href="admin.php?ac=activity&op=delActivity&id={$value[id]}" data-id="{$value[id]}" onclick="javascript:return activity_del()" class="btn">删除</a>
								</td>
						    </tr>
					    </tbody>
					    	<!--{eval $i++}-->
						    <!--{/loop}-->
					</table>
					
					<div class="alert alert-info">
		              	<strong>每日一语</strong>
		              	<button href="#addWisdomActivity" role="button" class="btn btn-primary btn-small" data-toggle="modal">添加</button>
						<div id="addWisdomActivity" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_wisdom" aria-hidden="true">
						  <form action="admin.php?ac=activity&op=addWisdomActivity" method="post">
							  <div class="modal-header">
								    <button class="close" aria-hidden="true" data-dismiss="modal" type="button">×</button>
								    <h3 id="myModalLabel_wisdom">添加每日一语</h3>
							  </div>
							  <div class="modal-body nav-category">
									<div class="control-group">
										<label class="control-label" for="name">名称</label>
										<div class="controls">
											<input type="text" name="name" class="input-large" value="每日一语--20141220">
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="image_url">小图链接(4.0版本之前的老版本，必填)</label>
										<div class="controls">
											<input type="text" name="image_url" class="span5" value="http://img.fenfenriji.com/web/act/motto/banner/6.10.jpg">
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="link_url">大图链接(4.0版本之后新版本支持，必填)</label>
										<div class="controls">
											<input type="text" name="link_url" class="span5" value="">
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="content">内容</label>
										<div class="controls url_textarea">
											<textarea  style="width: 366px; height: 74px;" name="content" placeholder="每日一语内容" ></textarea>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="start">上线时间</label>
					                	<input id="start4" name="day" class="span3 laydate-icon" type="text">
									</div>
						  	    </div>
							    <div class="modal-footer">
								    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
								    <button type="submit" class="btn btn-primary">提交</button>
							    </div>
						  </form>
						</div>
		            </div>
	      			<table class="table table-bordered table-striped">
					    <colgroup>
					    	<col class="span1">
					    	<col class="span5">
					    </colgroup>
					    <thead>
					    	<tr>
								<th>名称</th>
								<th style="width:50%;">内容</th>
								<th>小图链接</th>
								<th>大图链接</th>
								<th>上线/下线[时间]</th>
								<th>有效期</th>
								<th>编辑</th>
								<th>删除</th>
					      	</tr>
					    </thead>
					    <tbody>
					    	<!--{loop $wisdomList $value}-->
					    	<tr>
								<td>{$value[name]}</td>
								<td>{$value[content]}</td>
								<td><img src="{$value[image_url]}"/></td>
								<td><a href="{$value[link_url]}" target="_blank">点击查看</a></td>
								<td><!--{date('Y-m-d H:i:s', $value[start])}--><br/><!--{date('Y-m-d H:i:s', $value[end])}--></td>
								<td>
									<!--{if $value[end] < $nowTimeStamp}-->
										<span class="label label-warning">过期</span>
									<!--{else}-->
										<span class="label label-success">有效</span>
									<!--{/if}-->
								</td>
								<td>
									<button href="#setWisdomActivity_{$value[id]}" role="button" class="btn btn-primary btn-small" data-toggle="modal">编辑</button>
									<div id="setWisdomActivity_{$value[id]}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_wisdom_set_{$value[id]}" aria-hidden="true">
									  <form action="admin.php?ac=activity&op=setWisdomActivity" method="post">
										  <div class="modal-header">
											    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											    <h3 id="myModalLabel_wisdom_set_{$value[id]}">修改每日一语</h3>
										  </div>
										  <div class="modal-body nav-category">
										  		<input type="hidden" name="id" value="{$value[id]}" >
												<div class="control-group">
													<label class="control-label" for="name">名称</label>
													<div class="controls">
														<input type="text" name="name" class="span5" value="{$value[name]}">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="image_url">小图链接(4.0版本之前的老版本，必填)</label>
													<div class="controls">
														<input type="text" name="image_url" class="span5" value="{$value[image_url]}">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="link_url">大图链接大图链接(4.0版本之后新版本支持，必填)</label>
													<div class="controls">
														<input type="text" name="link_url" class="span5" value="{$value[link_url]}">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="content">内容</label>
													<div class="controls">
														<textarea  style="width: 366px; height: 74px;" name="content">{$value[content]}</textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="start">上线时间</label>
													<div class="controls">
														<input type="text" name="start" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[start])}-->">
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="end">下线时间</label>
													<div class="controls">
														<input type="text" name="end" class="input-large" value="<!--{date('Y-m-d H:i:s', $value[end])}-->">
													</div>
												</div>
									  	    </div>
										    <div class="modal-footer">
											    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
											    <button type="submit" class="btn btn-primary">提交</button>
										    </div>
									  </form>
									</div>
								</td>
								<td>
									<a href="admin.php?ac=activity&op=delActivity&id={$value[id]}" data-id="{$value[id]}" onclick="javascript:return activity_del()" class="btn">删除</a>
								</td>
						    </tr>
						    <!--{/loop}-->
					    </tbody>
					</table>
                </div>
            </div>
	    </div>
    </div>
    <!--{template admin/leftside}-->
	<script type="text/javascript" src='static/scripts/jquery.min.js'></script>
	<script type="text/javascript" src='static/scripts/bootstrap.2.3.2.min.js'></script>
    <script type="text/javascript" src="static/scripts/enhance.js"></script>	
    <script type='text/javascript' src='static/scripts/excanvas.js'></script>
    <script type='text/javascript' src='static/scripts/jquery-ui.min.js'></script>
	<script type='text/javascript' src='static/scripts/jquery.wysiwyg.js'></script>
    <script type='text/javascript' src='static/scripts/visualize.jQuery.js'></script>
    <script type="text/javascript" src='static/scripts/functions.js'></script>
    <script type="text/javascript" src='static/scripts/common.js'></script>

	<script type="text/javascript">
		!function(){
			laydate.skin('molv');
		}();
		
		//自定义日期格式
		laydate({
		    elem: '#start1',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		laydate({
		    elem: '#start2',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		laydate({
		    elem: '#start3',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		laydate({
		    elem: '#start4',
		    format: 'YYYY-MM-DD',
		    istime: true
		});
		laydate({
		    elem: '#end1',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		laydate({
		    elem: '#end2',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		laydate({
		    elem: '#end3',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    istime: true
		});
		
		function activity_del() {
		    var msg = "确定要删除？";
		    if (confirm(msg)==true){
		        return true;
		     }else{
		        return false;
		     }
		}
	</script>

    <!--[if IE 6]>
    <script type='text/javascript' src='static/scripts//png_fix.js'></script>
    <script type='text/javascript'>
      DD_belatedPNG.fix('img, .notifycount, .selected');
    </script>
    <![endif]--> 

</body>
</html>